Add $indexStats stage tests#164
Conversation
Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
|
🤖 Auto-triaged by documentdb-triage-tool. Applied: Reasoningcomponent from path globs (test-coverage, test-framework); effort from diff stats (1379+0 LOC, 8 files); LLM: Adds new test cases for the $indexStats aggregation stage, introducing a new test case class within the test-coverage component. If a label is wrong, remove it manually and ping |
Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
|
Pushed a small change to move the |
| from documentdb_tests.framework.property_checks import Eq, Exists, IsType, NotExists | ||
| from documentdb_tests.framework.test_constants import INT64_ZERO | ||
|
|
||
| # Property [Top-Level Fields]: each output document contains the documented |
There was a problem hiding this comment.
can we have a test case verifying ops increment after index usage?
| msg="Wildcard index key should use $** field path", | ||
| ), | ||
| ] | ||
|
|
There was a problem hiding this comment.
can we have a test case a case like IndexModel([("arr", 1)]) on an array field to verify multi-key reporting, just for the sake of completeness.
This change adds tests for the
$indexStatsaggregation stage operator.I defined a new
IndexStatsTestCaseobject which extendsStageTestCase. These tests require indexes and custom collections in some cases, and I didn't want to pollute the more widely usedStageTestCasewith these.Ref: #34